<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>一组通用后台权限管理系统</title>
    <meta name="keywords" content="一组通用后台权限管理系统">
    <meta name="description" content="一组通用后台权限管理系统">
    <link rel="shortcut icon" th:href="@{img/favicon.ico}"/>
    <link th:href="@{css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{css/login.css}" rel="stylesheet"/>
	<link href="layui/css/layui.css" rel="stylesheet" />
    <!-- 全局js -->
    <script th:src="@{/js/jquery-1.10.2.js}"></script>
<!--    解决session过期跳转到登录页并跳出iframe框架-->
    <script language="JavaScript">
        if (window != top)
            top.location.href = location.href;
    </script>

</head>
<body style="margin: 0;">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
    <tbody>
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                <tr>
                    <td height="561" style="background:url(img/lbg.gif)">
                        <table width="940" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tbody>
                            <tr>
                                <td height="238" style="background:url(img/login01_jyz.png)">&nbsp;</td>
                            </tr>
                            <tr>
                                <td height="190">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tbody>
                                        <tr>
                                            <td width="208" height="190" style="background:url(img/login02.jpg)">
                                                &nbsp;
                                            </td>
                                            <td width="518" style="background:url(img/login03.jpg)">
                                                <form name="formLogin" id="formLogin" action="login" type="post"
                                                      titlemsg="登录中...">
                                                   <div style="text-align: center"><span  th:text="${message}" style="color: red;"></span></div>
                                                    <input type="hidden" name="returnUrl" value="">
                                                    <table width="320" border="0" align="center" cellpadding="0"
                                                           cellspacing="0">
                                                        <tbody>
                                                        <tr>
                                                            <td width="40" height="50">
                                                                <img src="img/user.gif" width="30" height="30">
                                                            </td>
                                                            <td width="38" height="50">用户</td>
                                                            <td width="242" height="50">
                                                                <input type="text" name="username" class="layui-input" placeholder="请输入用户名..."
                                                                       style="margin-left: 0px; margin-right: 18px; padding-top: 8px; padding-bottom: 8px; width: 189px;"
                                                                       >
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="50"><img src="img/password.gif" width="28"
                                                                                 height="32"></td>
                                                            <td height="50">密码</td>
                                                            <td height="50">
                                                                <input name="password" class="layui-input"
                                                                    type="password"
                                                                    style="margin-left: 0px; margin-right: 18px; padding-top: 8px; padding-bottom: 8px; width: 189px;"
                                                                   >
                                                            </td>
                                                        </tr>

                                                        <tr>
                                                            <td></td>
                                                            <td></td>
                                                            <td height="60">
                                                                <div style="width:100px;float:left;">
                                                                    <input type="submit" value="登录"
                                                                           class="layui-btn layui-btn-primary"
                                                                           data-loading="正在验证登录，请稍后..." />
                                                                </div>

                                                                <div style="width:70px;float:left;margin-left: -20px;">
                                                                    <a style="text-decoration: none" class="layui-btn layui-btn-sm" href="/register/apRegister" >注册企业</a>
                                                                </div>

                                                                <div style="width:70px;float:right;margin-right: 20px;">
                                                                    <a style="text-decoration: none"  class="layui-btn layui-btn-sm" onclick="login.zuceYh();">注册用户</a>
                                                                </div>

                                                            </td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                    <input type="hidden" name="loginType" value="JYZ">
                                                </form>
                                            </td>
                                            <td width="214" style="background:url(img/login04.jpg);">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td height="133" style="text-align:center;background:url(img/login05.jpg)">&nbsp;

                                </td>
                            </tr>
                            </tbody>
                        </table>


                    </td>

                </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr>
        <td align="center">

            <div id="login_footer">
                Copyright © 2020 All Rights Reserved.
                &nbsp;&nbsp;技术支持：aaa二期项目第一小组
            </div>
        </td>
    </tr>
    </tbody>
</table>

<script>
    //校验用户名和密码不能为空
    function checkNull() {
        var username = $("#username").val();
        var password = $("#password").val();
        if (username == null || username == '') {
            alert("用户名不能为空");
            return false;
        }
        if (password == null || password == '') {
            alert("密码不能为空");
            return false;
        }
        return true;
    }


</script>
</body>
</html>
